import request from '@/utils/request'


export const pageProductApi = (data) => {
  return request({
    url: '/todo/pageProduct',
    method: 'get',
    params: data
  })
}

export const getProductTodoByBatchIdApi = (data) => {
  return request({
    url: '/todo/getProductTodoByBatchId',
    method: 'post',
    data: data
  })
}



export const agreeProductApi = (data) => {
  return request({
    url: '/todo/agreeProduct',
    method: 'post',
    data: data
  })
}


export const disagreeProductApi = (data) => {
  return request({
    url: '/todo/disagreeProduct',
    method: 'post',
    data: data
  })
}

export const getProductCompleteByBatchIdApi = (data) => {
  return request({
    url: '/todo/getProductCompleteByBatchId',
    method: 'post',
    data: data
  })
}

export const revokeProductApi = (data) => {
  return request({
    url: '/todo/revokeProduct',
    method: 'post',
    data: data
  })}

export const pageWasteApi = (data) => {
  return request({
    url: '/todo/pageWaste',
    method: 'get',
    data: data
  })
}

export const agreeWasteApi = (data) => {
  return request({
    url: '/todo/agreeProduct',
    method: 'post',
    data: data
  })
}


export const disagreeWasteApi = (data) => {
  return request({
    url: '/todo/disagreeProduct',
    method: 'post',
    data: data
  })
}

export const pageTakeApi = (data) => {
  return request({
    url: '/todo/pageTake',
    method: 'get',
    data: data
  })
}

export const agreeTakeApi = (data) => {
  return request({
    url: '/todo/agreeTake',
    method: 'post',
    data: data
  })
}


export const disagreeTakeApi = (data) => {
  return request({
    url: '/todo/disagreeTake',
    method: 'post',
    data: data
  })
}
